<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    
    <title>开始使用 | icccc.cc   -   周瑜.com</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="hexo,editor,markdown">
    <meta name="description" content="安装依赖 Node.js v4.0+ Git  下载1git clone https://github.com/tajpure/hexo-editor.git 初始化进入hexo-editor目录，执行1npm install --production 配置_config.yml_config.yml位于hexo-editor根目录，提供了一些简单的配置选项给用户设置。 设置环境 如果在桌面环境使">
<meta name="keywords" content="hexo,editor,markdown">
<meta property="og:type" content="article">
<meta property="og:title" content="开始使用">
<meta property="og:url" content="http://doc2git.com/2016/06/20/hexo-editor-开始使用/index.html">
<meta property="og:site_name" content="icccc.cc   -   周瑜.com">
<meta property="og:description" content="安装依赖 Node.js v4.0+ Git  下载1git clone https://github.com/tajpure/hexo-editor.git 初始化进入hexo-editor目录，执行1npm install --production 配置_config.yml_config.yml位于hexo-editor根目录，提供了一些简单的配置选项给用户设置。 设置环境 如果在桌面环境使">
<meta property="og:updated_time" content="2017-12-05T08:11:59.536Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="开始使用">
<meta name="twitter:description" content="安装依赖 Node.js v4.0+ Git  下载1git clone https://github.com/tajpure/hexo-editor.git 初始化进入hexo-editor目录，执行1npm install --production 配置_config.yml_config.yml位于hexo-editor根目录，提供了一些简单的配置选项给用户设置。 设置环境 如果在桌面环境使">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="/css/style.css?v=1.6.14">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">doc2git</h5>
          <a href="mailto:ivuex@yahoo.com" title="ivuex@yahoo.com" class="mail">ivuex@yahoo.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/mirrors"  >
                <i class="icon icon-lg icon-home"></i>
                镜像
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/note"  >
                <i class="icon icon-lg icon-sticky-note"></i>
                便签
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/things"  >
                <i class="icon icon-lg icon-things"></i>
                计划列表
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                参考链群
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                标签
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories"  >
                <i class="icon icon-lg icon-categories"></i>
                分类
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/ivuex" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/edit-code-view--pad"  >
                <i class="icon icon-lg icon-read-manual"></i>
                读文档
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
            <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">开始使用</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off"
                   placeholder="Search">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <!-- Below lines Added by doc2git -->
        <div class="comments">
            <!--<a id="noteWrap" href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="note">-->
                <!--<i id="noteBtn" style="font-weight:900;" class="icon icon-lg icon-sticky-note-o"></i>-->
            <!--</a>-->
            <!--<div id="stickyNoteWrap" class="global-share"-->
                 <!--style="background-color:transparent; padding:4px 6px; display:flex; justify-content:center box-shadow:0 0 2px 0 rgba(0,0,0,0.16), 0 0px 0px 0 rgba(0,0,0,0.12)">-->
                <!--<iframe-->
                    <!--background="transparent"-->
                    <!--width="252"-->
                    <!--height="290"-->
                    <!--box-sizing="border-box"-->
                    <!--frameborder="0"-->
                    <!--scrolling="no"-->
                    <!--marginheight="0"-->
                    <!--marginwidth="0"-->
                    <!--src='http://localhost:8080/note'>-->
                    <!--style="padding:8px 6px"-->
                <!--</iframe>-->
            <!--</div>-->
        </div>
        <!-- Above lines Added by doc2git -->
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">开始使用</h1>
        <h5 class="subtitle">
            
            <time datetime="2016-06-20T12:47:46.000Z" itemprop="datePublished" class="page-time">
  2016-06-20
</time>


	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/文档/">文档</a></li></ul>

            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#安装依赖"><span class="post-toc-number">1.</span> <span class="post-toc-text">安装依赖</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#下载"><span class="post-toc-number">2.</span> <span class="post-toc-text">下载</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#初始化"><span class="post-toc-number">3.</span> <span class="post-toc-text">初始化</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#配置-config-yml"><span class="post-toc-number">4.</span> <span class="post-toc-text">配置_config.yml</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#设置环境"><span class="post-toc-number">4.0.1.</span> <span class="post-toc-text">设置环境</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#设置用户名和密码"><span class="post-toc-number">4.0.2.</span> <span class="post-toc-text">设置用户名和密码</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#设置博客目录-使用绝对路径"><span class="post-toc-number">4.0.3.</span> <span class="post-toc-text">设置博客目录(使用绝对路径)</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#设置端口"><span class="post-toc-number">4.0.4.</span> <span class="post-toc-text">设置端口</span></a></li></ol></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#启动"><span class="post-toc-number">4.1.</span> <span class="post-toc-text">启动</span></a></li></ol></li></ol>
        </nav>
    </aside>
    
<article id="post-hexo-editor-开始使用"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">开始使用</h1>
        <div class="post-meta">
            <time class="post-time" title="2016-06-20 20:47:46" datetime="2016-06-20T12:47:46.000Z"  itemprop="datePublished">2016-06-20</time>

            
	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/文档/">文档</a></li></ul>



            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <h2 id="安装依赖"><a href="#安装依赖" class="headerlink" title="安装依赖"></a>安装依赖</h2><ul>
<li><a href="https://nodejs.org" target="_blank" rel="external">Node.js</a> v4.0+</li>
<li><a href="https://git-scm.com/" target="_blank" rel="external">Git</a></li>
</ul>
<h2 id="下载"><a href="#下载" class="headerlink" title="下载"></a>下载</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">git clone https://github.com/tajpure/hexo-editor.git</div></pre></td></tr></table></figure>
<h2 id="初始化"><a href="#初始化" class="headerlink" title="初始化"></a>初始化</h2><p>进入hexo-editor目录，执行<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">npm install --production</div></pre></td></tr></table></figure></p>
<h2 id="配置-config-yml"><a href="#配置-config-yml" class="headerlink" title="配置_config.yml"></a>配置_config.yml</h2><p>_config.yml位于hexo-editor根目录，提供了一些简单的配置选项给用户设置。</p>
<h4 id="设置环境"><a href="#设置环境" class="headerlink" title="设置环境"></a><em>设置环境</em></h4><ol>
<li>如果在桌面环境使用，将local改为true，此时无需登录即可使用。</li>
<li>如果部署在服务器，请使用local的默认值false，此时需要配置用户名和密码。</li>
</ol>
<h4 id="设置用户名和密码"><a href="#设置用户名和密码" class="headerlink" title="设置用户名和密码"></a><em>设置用户名和密码</em></h4><blockquote>
<p>如果在桌面环境使用，请忽略此配置</p>
</blockquote>
<p>将要使用的用户名和密码依次填到username和password中，请不要使用默认值。</p>
<h4 id="设置博客目录-使用绝对路径"><a href="#设置博客目录-使用绝对路径" class="headerlink" title="设置博客目录(使用绝对路径)"></a><em>设置博客目录</em>(使用绝对路径)</h4><p>将hexo博客的目录路径配置到base_dir, 例:如果你的博客目录为”/home/user/blog”，则将base_dir设为该地址。</p>
<blockquote>
<p>如果需要使用hexo-editor提供的deploy功能，你需要设好hexo的deploy配置，并添加你的ssh key至deploy服务器的authorized_keys。使其不用密码即可deploy。</p>
</blockquote>
<h4 id="设置端口"><a href="#设置端口" class="headerlink" title="设置端口"></a><em>设置端口</em></h4><p>默认端口为2048，如果想自定义端口，直接修改即可。</p>
<h3 id="启动"><a href="#启动" class="headerlink" title="启动"></a>启动</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">npm start</div></pre></td></tr></table></figure>

        </div>

        <blockquote class="post-copyright">
    <div class="content">
        
<span class="post-time">
    Last updated: <time datetime="2017-12-05T08:11:59.536Z" itemprop="dateUpdated">2017-12-05 16:11:59</time>
</span><br>


        
        让文字梳理技能，用技能创造价值。
        
    </div>
    <footer>
        <a href="http://doc2git.com">
            <img src="/img/avatar.jpg" alt="doc2git">
            doc2git
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            
	<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/editor/">editor</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/hexo/">hexo</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/markdown/">markdown</a></li></ul>


            
<div class="page-share-wrap">
    


<div class="page-share" id="pageShare">

    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://doc2git.com/2016/06/20/hexo-editor-开始使用/&title=《开始使用》 — icccc.cc   -   周瑜.com&pic=http://doc2git.com/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://doc2git.com/2016/06/20/hexo-editor-开始使用/&title=《开始使用》 — icccc.cc   -   周瑜.com&source=" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://doc2git.com/2016/06/20/hexo-editor-开始使用/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《开始使用》 — icccc.cc   -   周瑜.com&url=http://doc2git.com/2016/06/20/hexo-editor-开始使用/&via=http://doc2git.com" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://doc2git.com/2016/06/20/hexo-editor-开始使用/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/2017/09/02/来来来，欢快的写UI，立刻view渲染！/" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">来来来，欢快的写UI，立刻view渲染！</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/2016/06/20/hexo-editor-Getting-Started/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">Getting Started</h4>
      </a>
    </div>
  
</nav>



    











</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        谢谢大爷~
        <i class="icon icon-quote-right"></i>
    </h3>
    <div class="reward-content">
        
        <div class="reward-code">
            <img id="rewardCode" src="/img/wechat.jpg" alt="打赏二维码">
        </div>
        
        <label class="reward-toggle">
            <input id="rewardToggle" type="checkbox" class="reward-toggle-check"
                data-wechat="/img/wechat.jpg" data-alipay="/img/alipay.jpg">
            <div class="reward-toggle-ctrol">
                <span class="reward-toggle-item wechat">微信</span>
                <span class="reward-toggle-label"></span>
                <span class="reward-toggle-item alipay">支付宝</span>
            </div>
        </label>
        
    </div>
</div>



</div>

        <footer class="footer">
    <div class="top">
        
<p>
    <span id="busuanzi_container_site_uv" style='display:none'>
        站点总访客数：<span id="busuanzi_value_site_uv"></span>
    </span>
    <span id="busuanzi_container_site_pv" style='display:none'>
        站点总访问量：<span id="busuanzi_value_site_pv"></span>
    </span>
</p>


        <p>
            
            <span>This blog is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.</span>
        </p>
    </div>
    <div class="bottom">
        <p><span>doc2git &copy; 2015 - 2017</span>
            <span>
                
                Power by <a href="http://doc2git.com.cn" target="_blank">doc2git</a> 
	<!--	Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a> -->
            </span>
	    <span>
		Tel <a href="javascript:;">15823170299</a>
	    </span>
        </p>
    </div>
</footer>



    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>




<div class="global-share" id="globalShare">

    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://doc2git.com/2016/06/20/hexo-editor-开始使用/&title=《开始使用》 — icccc.cc   -   周瑜.com&pic=http://doc2git.com/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://doc2git.com/2016/06/20/hexo-editor-开始使用/&title=《开始使用》 — icccc.cc   -   周瑜.com&source=" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://doc2git.com/2016/06/20/hexo-editor-开始使用/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《开始使用》 — icccc.cc   -   周瑜.com&url=http://doc2git.com/2016/06/20/hexo-editor-开始使用/&via=http://doc2git.com" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://doc2git.com/2016/06/20/hexo-editor-开始使用/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="//api.qrserver.com/v1/create-qr-code/?data=http://doc2git.com/2016/06/20/hexo-editor-开始使用/" alt="微信分享二维码">
</div>




    <script src="/js/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: true };


</script>

<script src="/js/main.min.js?v=1.6.14"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="/js/search.min.js?v=1.6.14" async></script>






<script async src="/js/busuanzi.pure.min.js"></script>



<script>
(function() {
    var OriginTitile = document.title, titleTime;
    document.addEventListener('visibilitychange', function() {
        if (document.hidden) {
            document.title = '死鬼去哪里了！';
            clearTimeout(titleTime);
        } else {
            document.title = '(つェ⊂)咦!又好了!';
            titleTime = setTimeout(function() {
                document.title = OriginTitile;
            },2000);
        }
    });
})();
</script>



</body>
</html>
